const appRoutes = [
  {
    path: '/login',
    name: 'login',
    component: 'login'
  },
  {
    path: '/otherRouter',
    name: 'otherRouter',
    component: 'Main',
    children: [
      {
        path: 'set-task',
        name: 'task_index',
        component: 'setTask'
      },
      {
        path: 'mouldSetting',
        name: 'mould_setting',
        component: 'mouldSetting'
      },
      {
        path: 'siteSetting',
        name: 'site_setting',
        component: 'siteSetting'
      },
      {
        path: 'deploySetting',
        name: 'deploy_setting',
        component: 'deploySetting'
      },
      {
        path: 'userSetting',
        name: 'user_setting',
        component: 'userSetting'
      },
      {
        path: 'roleSetting',
        name: 'role_setting',
        component: 'roleSetting'
      }
    ]
  },
  {
    path: '/403',
    name: 'Error403',
    component: 'error403'
  },
  {
    path: '/404',
    name: 'Error404',
    component: 'error404'
  },
  {
    path: '/500',
    name: 'Error500',
    component: 'error500'
  },
  {
    path: '*',
    name: 'error_404',
    component: 'error404'
  }
]

export const routes = [...appRoutes]
